package com.skyinno.mrms.station.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.skyinno.mrms.utils.Constants;
import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name = "mrms_map_station_type", schema = Constants.SCHEMA)
public class MapStationType implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** id. */
	/** ID. */
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	private String id;

	// 站点名称
	@Column(name = "type_id")
	private String typeId;
	
	// 站点名称
	@Column(name = "name", nullable = false, length = 256)
	private String name;

	// 站点英文名
	@Column(name = "name_en", nullable = false, length = 256)
	private String nameEn;

	// 站点图标路径
	@Column(name = "icon", nullable = false, length = 512)
	private String icon;

	// 站点类型排序
	@Column(name = "sort", length = 11)
	private int indexOrder;

	// 备注
	@Column(name = "remark", length = 1800)
	private String remark;

	// 站点逻辑删除 1可用 0不可用
	@Column(name = "flag", nullable = false, length = 1)
	private String flag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getIndexOrder() {
		return indexOrder;
	}
	public void setIndexOrder(int indexOrder) {
		this.indexOrder = indexOrder;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
